package com.platform.modules.job.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.platform.common.utils.Query;
import com.platform.modules.job.dao.ScheduleJobLogDao;
import com.platform.modules.job.entity.ScheduleJobLogEntity;
import com.platform.modules.job.service.ScheduleJobLogService;

/**
 * @author 肖亮
 */
@Service("scheduleJobLogService")
public class ScheduleJobLogServiceImpl extends ServiceImpl<ScheduleJobLogDao, ScheduleJobLogEntity>
		implements ScheduleJobLogService {

	@Override
	public Page queryPage(Map<String, Object> params) {
		// 排序
		params.put("sidx", "T.CREATE_TIME");
		params.put("asc", false);
		Page<ScheduleJobLogEntity> page = new Query<ScheduleJobLogEntity>(params).getPage();
		return page.setRecords(baseMapper.selectScheduleJobLogPage(page, params));
	}

}
